a = {:first_name => "Michael", :last_name => "Choi"}
b = {:first_name => "John", :last_name => "Supsupin"}
c = {:first_name => "KB", :last_name => "Tonel"}
d = {:first_name => "Mikee", :last_name => "Buyco"}
e = {:first_name => "Diana", :last_name => "Manlulu"}

names = [a, b, c, d, e]

puts "You got " + names.count.to_s + " names in the 'names' array"
names.each {|x| puts "The name is " + (x[:first_name]+ " " + x[:last_name])}





# # hello = "you will be".split(" ")
# # print hello

# # hi = ['you', 'will', 'be'].join(" ")
# # puts hi

# # split - string to array
# # join - array to string 


# names = ["Dexter", "Lizzie", "Ed"]
# names.each do |name|
# 	puts name[0]
# end




# num = [1,2,[3,4,7],[9,8]]
# num.each do |x| 
# 	if x.class == Array 
# 		x.each { |y| puts y }
# 	else 
# 		puts x
# end
# end

# class Sum 
# 	def initialize 
# 		@sum = 0
# 	end 
# 	def add(num)
# 		@sum += num 
# 		return self 
# 	end
# 	def display
# 		return @sum 
# 	end
# end 

# num = Sum.new.add(2).add(2).display

# puts num 



# class dog 
# 	@@num_of_dog_adopted = 0 
# 	@breed 
# 	def initialize(breed)
# 		@breed = breed
# 	end
# 	def adopt 
# 		@@num_of_dog_adopted +=1 
# 	end
# end

# fido = Dog.new("golden retriever")
# fido2 = Dog.new("pit bull")

# fido2.adpot 
# puts Dog.num_of_dog_adopted 
